package com.mall.service.impl.sys;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mall.entity.sys.UserEO;
import com.mall.exception.MsgException;
import com.mall.mapper.sys.UserMapper;
import com.mall.service.sys.IUserService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Dczzs
 * @since 2020-06-24
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, UserEO> implements IUserService {

	@Override
	public boolean delete(Integer id) {
	  boolean yn = 	removeById(id);
	  if(yn) {
		  return true;
	  }else {
		  
		  throw new MsgException("删除失败！！！");
	  }
		
	}



}
